﻿<%@ Page Title="修改手机号" Language="C#" MasterPageFile="~/APP_Master/MasterPage_Personal.master"
    AutoEventWireup="true" CodeFile="per_phone.aspx.cs" Inherits="per_phone" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
<script language="javascript" type="text/javascript"> 
         function sendMsgInfo() {  
             if (jQuery('#newmobile').val().length < 11) {
                 alert("请输入正确的新手机号码!");
                 return;
             }
             else { 

             
                $.post("/Ajax/SubmitMsg.aspx", { mobileNum: jQuery('#newmobile').val(), Type: 2}, function (data) {
                    if (data == "sucess") {
                        alert("发送成功!");
                    } else {
                        alert(data);
                        document.getElementById("checkCode_imgmobile").src = "/Ajax/vilcode.aspx";
                    }
                }, "text");
            }
            RemainTime(); 
         }
         var iTime = 59;
         var Account;
         function RemainTime() {
             var iSecond, sSecond = "", sTime = "";
             document.getElementById('zphone').disabled = true;
             if (iTime >= 0) {
                 iSecond = parseInt(iTime % 60);
                 iMinute = parseInt(iTime / 60)
                 if (iSecond >= 0) {
                     if (iMinute > 0) {
                         sSecond = iMinute + "分" + iSecond + "秒";
                     } else {
                         sSecond = iSecond + "秒后重新获取";
                     }
                 }
                 sTime = sSecond;
                 if (iTime == 0) {
                     clearTimeout(Account);
                     sTime = '获取手机验证码';
                     iTime = 59;
                     document.getElementById('zphone').disabled = false;
                 } else {
                     Account = setTimeout("RemainTime()", 1000);
                     iTime = iTime - 1;
                 }
             } else {
                 sTime = '没有倒计时';
             }
             document.getElementById('zphone').value = sTime;
         }  
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<!--Right-->
<div class="per_right_con">
    <div class="per_right_t">
        <b>修改绑定的手机号 </b>
    </div>
    <ul class="per_reset_ul">
        <li>
            <p class="per_reset_n">原手机号码：</p>
            <asp:TextBox ID="aftermobile" runat="server" CssClass="per_phone_input" MaxLength="11"></asp:TextBox>
            <p class="per_reset_infor">请输入当前绑定的手机号码<asp:RequiredFieldValidator ID="rfv1" runat="server"
                    ErrorMessage="必须输入" ControlToValidate="aftermobile"></asp:RequiredFieldValidator></p>
        </li>
        <li>
            <p class="per_reset_n">新手机号码：</p>
           <input type="text" id="newmobile" name="newmobile"  class="per_phone_input" maxlength="11"/> 
            <p class="per_reset_infor">请输入11位手机号码</p>
        </li>
        <li>
            <p class="per_reset_n">短信确认码：</p>
            <asp:TextBox ID="checkcode" runat="server" CssClass="per_reset_input_y"  MaxLength="4"></asp:TextBox>
            
                      <input id="zphone" type="button" class="per_phone_y"  value="获取验证码" onclick="javascript:sendMsgInfo();"/> 
            <p class="per_reset_infor">请输入新手机接收的确认码<asp:RequiredFieldValidator ID="rfv2" runat="server"
                    ErrorMessage="必须输入" ControlToValidate="checkcode"></asp:RequiredFieldValidator></p>
        </li>
        <li>
            <p class="per_reset_n">支付密码：</p>
            <asp:TextBox ID="zhifupass" runat="server" CssClass="per_phone_input" 
                TextMode="Password" ></asp:TextBox>
            <p class="per_reset_infor">请输入支付密码<asp:RequiredFieldValidator ID="rfv3" runat="server"
                    ErrorMessage="必须输入" ControlToValidate="zhifupass"></asp:RequiredFieldValidator></p>
        </li>
        <li><a href="" class="per_phone_password">忘记支付密码？</a></li>
        <li>
            <asp:Button ID="mdifyBtn" runat="server" Text="确认修改" CssClass="per_phone_btn" 
                onclick="mdifyBtn_Click" />
       </li>
    </ul> 
    <div class="per_r_infor">
        <h3>温馨提示：</h3>
        <p>务必保证修改后的手机号可以正常接听，以便您中大奖后我们及时与您取得联系；</p>
        <p>如忘记原手机号码，请联系在线客服，核对身份信息无误后，客服人员将帮助您进行修改；</p>
    </div>  
</div>
<!--Right-->
<div class="per_bg_bottom"></div>
</div>
<!--Content-->
</asp:Content>
